package com.sanploy.fed.push.service;

import com.sanploy.fed.push.bean.FileInfomation;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
 * Created by Administrator on 2016/8/15.
 */
public interface FileService {
    public String savePhoto(MultipartFile file,String introduce,String url,String type,String filetype);

    public void saveVideo(MultipartFile file,String introduce,String url,String filetype);

    public List<FileInfomation> getFileByTypeAndPage(String type,int count, int page);

    public Long getCountByType(String type);

    public FileInfomation findById(Long id);

    public void deleteFile(Long id);
}
